Exclude Apache CXF dependency from kvm hypervisor plugin - #13756
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 4.22 #13756 +/- ##
============================================
- Coverage 17.69% 17.69% -0.01%
Complexity 15833 15833
============================================
Files 5925 5925
Lines 533534 533534
Branches 65273 65273
============================================
- Hits 94421 94416 -5
- Misses 428434 428442 +8
+ Partials 10679 10676 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@sudo87 what (if any) is the functional trade-off for this? |
No functional trade-off, KVM never uses the CXF jar. This exclusion is scoped to plugins/hypervisor/kvm only. |
|
@blueorangutan package |
|
@nvazquez a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
nvazquez
left a comment
There was a problem hiding this comment.
Thanks @sudo87 - LGTM
Before the fix:
nicolas-work@192:~/cloudstack$ mvn dependency:tree -pl plugins/hypervisors/kvm -Dincludes=org.apache.cxf
[INFO] Scanning for projects...
[INFO]
[INFO] ---------< org.apache.cloudstack:cloud-plugin-hypervisor-kvm >----------
[INFO] Building Apache CloudStack Plugin - Hypervisor KVM 4.22.2.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.9.0:tree (default-cli) @ cloud-plugin-hypervisor-kvm ---
[INFO] org.apache.cloudstack:cloud-plugin-hypervisor-kvm:jar:4.22.2.0-SNAPSHOT
[INFO] \- org.apache.cloudstack:cloud-engine-storage:jar:4.22.2.0-SNAPSHOT:compile
[INFO] \- org.apache.cloudstack:cloud-engine-api:jar:4.22.2.0-SNAPSHOT:compile
[INFO] \- org.apache.cloudstack:cloud-framework-rest:jar:4.22.2.0-SNAPSHOT:compile
[INFO] \- org.apache.cxf:cxf-rt-frontend-jaxrs:jar:3.2.14:compile
[INFO] +- org.apache.cxf:cxf-core:jar:3.2.14:compile
[INFO] \- org.apache.cxf:cxf-rt-transports-http:jar:3.2.14:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.704 s
[INFO] Finished at: 2026-08-02T15:54:14-03:00
[INFO] ------------------------------------------------------------------------
nicolas-work@192:~/cloudstack$ ls plugins/hypervisors/kvm/target/dependencies | grep -i cxf
cxf-core-3.2.14.jar
cxf-rt-frontend-jaxrs-3.2.14.jar
cxf-rt-transports-http-3.2.14.jar
After the fix:
nicolas-work@192:~/cloudstack$ mvn dependency:tree -pl plugins/hypervisors/kvm -Dincludes=org.apache.cxf
[INFO] Scanning for projects...
[INFO]
[INFO] ---------< org.apache.cloudstack:cloud-plugin-hypervisor-kvm >----------
[INFO] Building Apache CloudStack Plugin - Hypervisor KVM 4.22.2.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.9.0:tree (default-cli) @ cloud-plugin-hypervisor-kvm ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.775 s
[INFO] Finished at: 2026-08-02T15:49:21-03:00
[INFO] ------------------------------------------------------------------------
nicolas-work@192:~/cloudstack$ ls plugins/hypervisors/kvm/target/dependencies | grep -i cxf
Description
Excludes Apache CXF (cxf-rt-frontend-jaxrs, and transitively cxf-core/cxf-rt-transports-http) from the KVM hypervisor plugin's bundled runtime dependencies, removing the CVE-2026-49875 / CVE-2026-50623 / CVE-2026-50633 / CVE-2026-50634 exposure on KVM agent hosts.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Dependency tree check: confirms CXF is no longer resolved for the KVM plugin module:
mvn dependency:tree -pl plugins/hypervisors/kvm -Dincludes=org.apache.cxfoutput is empty after the fix
Build artifact check: confirms no CXF jars are copied into the agent's dependency bundle
ls plugins/hypervisors/kvm/target/dependencies | grep -i cxfno result
How did you try to break this feature and the system with this change?